﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="InformeVentas.aspx.cs" Inherits="Forrajeria.InformeVentas" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 177px;
        }
        .style3
        {
            width: 158px;
        }
        .style4
        {
            width: 125px;
        }
        .style5
        {
            width: 177px;
            height: 22px;
        }
        .style6
        {
            width: 158px;
            height: 22px;
        }
        .style7
        {
            height: 22px;
        }
        .style9
    {
        color: #000000;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
    <h3>
    <asp:Label ID="lblVentas" runat="server" Text="Ventas"></asp:Label></h3><table 
        class="style1">
        <tr>
            <td class="style2">
                <asp:Label ID="lblTipoFactura" runat="server" Text="Tipo Factura:" 
                    CssClass="style9"></asp:Label>
            </td>
            <td class="style3">
                <asp:DropDownList ID="ddlTipoFactura" runat="server" Height="20px" 
                    Width="127px">
                    <asp:ListItem Value="0">--Seleccione--</asp:ListItem>
                    <asp:ListItem>A</asp:ListItem>
                    <asp:ListItem>B</asp:ListItem>
                    <asp:ListItem>C</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="style4">
                <asp:Label ID="lblEmpleado" runat="server" Visible="False" CssClass="style9">Numero Empleado</asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmpleado" runat="server" Enabled="False" 
                    style="margin-left: 0px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lblFechaDesde" runat="server" Text="Fecha Desde:" 
                    CssClass="style9"></asp:Label>
            </td>
            <td class="style3">
                <asp:TextBox ID="txtDesde" runat="server"></asp:TextBox>
            </td>
            <td class="style4">
                <asp:Label ID="lblNombreEmpleado" runat="server" Visible="False" 
                    CssClass="style9">Nombre</asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtNombre" runat="server" Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lblFechaHasta" runat="server" Text="Fecha Hasta:" 
                    CssClass="style9"></asp:Label>
            </td>
            <td class="style3">
                <asp:TextBox ID="txtHasta" runat="server"></asp:TextBox>
            </td>
            <td class="style4">
                <asp:Label ID="lblApellido" runat="server" Visible="False" CssClass="style9">Apellido</asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtApellido" runat="server" Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style5">
                </td>
            <td class="style6">
                <asp:Button ID="btnVentas" runat="server" onclick="btnVentas_Click" 
                    Text="Buscar Ventas" />
            </td>
            <td class="style7" align="center" colspan="2">
                <asp:Button ID="btnEmpleado" runat="server" onclick="btnEmpleado_Click" 
                    Text="Buscar Empleado" />
                </td>
        </tr>
    </table>
&nbsp;<asp:Panel ID="panelEmpleado" runat="server" CssClass="style9">
    
        <asp:GridView ID="gvEmpleados" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="Codigo,TipoDocumento,NroDocumento,Localidad,Dpto,Piso" 
            onselectedindexchanging="gvEmpleados_SelectedIndexChanging" 
            CellPadding="4" EmptyDataText="No hay Datos para Mostrar" ForeColor="#333333" 
            GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Codigo" HeaderText="Codigo" />
                <asp:BoundField DataField="Nombre" HeaderText="Nombre" />
                <asp:BoundField DataField="Apellido" HeaderText="Apellido" />
                <asp:BoundField DataField="NroDocumento" HeaderText="NroDocumento" />
                <asp:CommandField ButtonType="Image" CancelText="" DeleteText="" 
                    HeaderText="Seleccione" InsertText="" 
                    NewText="" 
                    UpdateImageUrl="~/Images/selectBusqueda.jpg" UpdateText="" EditText="" 
                    SelectImageUrl="~/Images/selectBusqueda.jpg" ShowSelectButton="True" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        </asp:Panel>


<asp:Panel ID="panelVentas" runat="server">
    <asp:GridView ID="gvVentas" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" ForeColor="#333333" GridLines="None" 
        onselectedindexchanging="gvVentas_SelectedIndexChanging">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="NroFactura" HeaderText="Numero Factura" />
            <asp:BoundField DataField="CodigoEmpleado" HeaderText="Codigo Empleado" />
            <asp:BoundField DataField="NroPedido" HeaderText="Pedido" />
            <asp:BoundField DataField="CodigoCliente" HeaderText="Cliente" />
            <asp:BoundField DataField="Fecha" HeaderText="Fecha" />
            <asp:BoundField DataField="TotalFactura" HeaderText="Total" />
            <asp:CommandField ButtonType="Image" HeaderText="Seleccione" 
                SelectImageUrl="~/Images/selectBusqueda.jpg" ShowSelectButton="True" />
        </Columns>
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F8FAFA" />
        <SortedAscendingHeaderStyle BackColor="#246B61" />
        <SortedDescendingCellStyle BackColor="#D4DFE1" />
        <SortedDescendingHeaderStyle BackColor="#15524A" />
    </asp:GridView>
    <h4>
        <asp:Label runat="server" Text="Detalles" ID="lblDetalle"></asp:Label></h4>
    <asp:GridView ID="gvDetalle" runat="server" CellPadding="4" ForeColor="#333333" 
        GridLines="None" AutoGenerateColumns="False" Width="100%">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="Detalle" HeaderText="Numero Detalle" />
            <asp:BoundField DataField="Forraje" HeaderText="Forraje" />
            <asp:BoundField DataField="Precio" HeaderText="Precio" />
            <asp:BoundField DataField="Descripcion" HeaderText="Descripcion" />
            <asp:BoundField DataField="Peso" HeaderText="Peso" />
            <asp:BoundField DataField="Cantidad" HeaderText="Cantidad" />
        </Columns>
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F8FAFA" />
        <SortedAscendingHeaderStyle BackColor="#246B61" />
        <SortedDescendingCellStyle BackColor="#D4DFE1" />
        <SortedDescendingHeaderStyle BackColor="#15524A" />
    </asp:GridView>

</asp:Panel>
</asp:Content>
